package com.hbnu.message;

import java.io.Serial;
import java.io.Serializable;

public class Response implements Serializable {
    @Serial
    private static final long serialVersionUID = 285426775486935195L;
    private final boolean ok;
    private final String msg;

    public Response(boolean ok, String msg) {
        this.ok = ok;
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "Response{" +
                "ok=" + ok +
                ", msg='" + msg + '\'' +
                '}';
    }
}
